package net.zjitc.mapper;

import net.zjitc.pojo.User;
import net.zjitc.pojo.UserVo;

import java.util.List;

/**
 * Created by Administrator on 2017/12/20.
 */
public interface UserMapper {

    /**
     * namespace="net.zjitc.mapper.UserMapper"
     * 方法名：与xml中的sql语句的id一致
     * 参数：与parameterType类型一致
     * 类：与resultType类一致
     *
     * */
    public User findUserById(int id);

//    User不是单独的一个所以List
    public List<User> findUserByUsername(String username);
    List<User> findUserByUserVo(UserVo vo);

    /*resultMap 通过 用户名和性别来查询？？*/
    List<User> findUserByTypeAlise();
    List<User> findUserByCondition(UserVo vo);
    int findUserCountByCondition(UserVo vo);

}
